<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.List,java.util.ArrayList"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html" charset="UTF-8" />
<link rel="stylesheet" type="text/css" href="index.css">
<title>新闻添加</title>
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
</head>
<body>
<a href="NewsList.do">返回</a>
			 
	<div align=center>
				
		<s:form method="post" name="form1" action="NewsInsert.do" theme="simple">
		<h1 align="center">新闻添加</h1>
		<br>
			<table>	
				<tr>
					<td align="left">
						标&nbsp;&nbsp;&nbsp;题	:&nbsp;<s:textfield name="title"></s:textfield> 
					</td>
												
					<td>	
						来&nbsp;&nbsp;&nbsp;源:&nbsp;<s:textfield name="source"></s:textfield>
					</td>
								
										
					<td align="left">	
						类&nbsp;&nbsp;&nbsp;别	:&nbsp;<s:select list="#{1:'体育',2:'娱乐',3:'军事',4:'科技'}" 
							name="classId" listValue="value" listKey="key">
						</s:select>
					</td>
				</tr>
				
				<tr>
								
					<td colspan="3" align="left">	
						描&nbsp;&nbsp;&nbsp;述	:&nbsp;<s:textarea name="des" style="height:50px;width:680px;"></s:textarea>
					</td>
				</tr>
				
				<tr>
								
					<td align="left">	
						关键字:&nbsp;<s:textfield name="keyWords"></s:textfield>
					</td>
					
					<td>	
						发布者:&nbsp;<s:textfield name="candidator"></s:textfield>
					</td>
														
					<td>	
						版权信息	:&nbsp;<s:textfield name="copyRight"></s:textfield>
					</td>
				</tr>
				
				<tr>
								
					<td colspan="2" align="left">	
						图&nbsp;&nbsp;&nbsp;片	:&nbsp;<s:file name="imgSrc" ></s:file>
					</td>
				</tr>
				
				<tr>
						
					<td colspan="3" align="left">	
					<s:textarea id="mainText" class="ckeditor" name="mainText" style="height:300px;width:680px;"></s:textarea>
						<script type="text/javascript">CKEDITOR.replace('mainText');</script>
					</td>
				</tr>
				
				<tr>
					<td colspan="3" align="right">	
						<s:submit value="提交"></s:submit>
					</td>
				</tr>
			</table>	
		</s:form>
	</div>

</body>

</html>